home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 95
/
MOBICLIC 95.ISO
/
mac
/
MWB_DATA
/
TCH095
/
TCH095_02
/
tch095_02.swf
/
scripts
/
frame_6
/
PlaceObject2_135_134
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2007-06-28
|
1KB
|
44 lines
onClipEvent(enterFrame){
if(pSonDebutCharge === 0)
{
if(mySonCharge <= _root.gListeSons.length - 1)
{
var mon_sound = new Sound();
if(mySonCharge === 0)
{
if(myLangue === _root.gLangue)
{
mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",true);
_root.gCommentOn = 1;
_root.dernierComment = mon_sound;
_root.ST.afficheText(_root.gListeSons[0]);
}
else
{
mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
}
_root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
}
else
{
mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
}
pSonDebutCharge = 1;
_root.infos["testCharge" + myLangue].text = String(mySonCharge) + "/" + String(_root.gListeSons.length - 1);
}
}
else
{
if(mon_sound.getBytesTotal() != 0)
{
_root.infos["testpCent" + myLangue].text = 100 * (mon_sound.getBytesLoaded() / mon_sound.getBytesTotal());
}
if(mon_sound.getBytesLoaded() == mon_sound.getBytesTotal())
{
_root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
mySonCharge += 1;
pSonDebutCharge = 0;
}
}
}